﻿@using LY.Common
@using LY.Entity
@{ViewBag.ControllerName = this.ViewContext.RouteData.Values["controller"].ToString().ToLower();
  LY.Interface.IArticleService articleService = new LY.Business.ServiceImpl.ArticleService();}
<style>
        .scrollText {
    width: 99%;
    height: 25px;
    min-height: 25px;
    line-height: 25px;
    border: #ccc 0px solid;
    float: left;
    overflow: hidden;
    font-size: 12px;
    color: #808080;
    }

    .scrollText li {
    height: 25px;float: left;width: 100%;
    }
    .scrollText li a {
    color:#494848;
    }
    .gg .gg_1 {float:left;height:30px;width: 100%;padding-left:0px;padding-top:10px;}
.gg .gg_1 li a {margin-right:20px;cursor:pointer;}
.gg .gg_1 li a:hover {color:#334f7f;font-weight:500}
</style>
<header id="page_header" style="z-index:10000;">
    <div class="topbar" id="topbar">
        <div class="grid-1200 topbar-wrap clearfix">
            <div class="topbar-left">
                <div class="gg" style="width: 700px;margin-left: 0px;">
        <div class="gg_1">
            <div class="scrollText">
                <ul>
                    @{
                        var articleList = articleService.GetArticleList(212, 4);
                        foreach (var cArticle in articleList)
                        {
                        <li>网站公告：<a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Article/NewsList?id=@cArticle.ID">@cArticle.Name </a></li>
                        }
                    }
                </ul>
            </div>
        </div>
    </div>
            </div>
            <div class="topbar-right ">
                <ul class="topmenu fl">
                    <li class="topmenu-item topmenu-userinfo"><span id="loginbar">
                                                                  <iframe src="@Url.Action("ISLogin","Login")" style="display: none"></iframe> 
                                                                  @if (Session["CurrentUser"]!=null)
                                                                  {
                                                                      var member = Session["CurrentUser"] as U_Member;
                                                                      <a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]@Url.Action("Index", "Account")">@member.Nickname</a> 
                                                                      @Html.ActionLink("退出登录", "Logout", "Login" , null , new{style="margin-left: 10px"})      
                                                                  }
                                                                  else
                                                                  {
                                                                      <a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Account/Index">登录</a>
                                                                      <a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Login/Register" style="margin-left: 10px">免费注册</a>
                                                                  }
                                                              </span></li>
                    <li class="topmenu-item"><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]@Url.Action("focusproject", "UserProject")">我的关注</a></li>
                   <li class="topmenu-item dropdown topmenu-dropdown" data-hover="topmenu-dropdown-hover"><i class="drop-arrow"></i><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Article/NewsList?menuid=220" class="topmenu-sitemap">帮助中心</a>
                    </li>                 
                </ul>
                <ul class="toplink fl">
                           <li class="toplink-item toplink-title">&nbsp;</li>
                      <li class="topmenu-item" style="float:right;"><a href="javascript:;">服务热线:400-172-5886 </a></li> 
                    <li class="toplink-item dropdown toplink-dropdown" style="float:right;"><i class="icon icon-weibo"></i>
                        <ul class="dropbox dropbox-weibo">
                            <li>
                                <img src="~/Content/Images/90logo.png"   width="90px"  alt="全局金服微博"> 
                                          <a class="size12" href="http://weibo.com/quanjujinfu" target="_blank"> 全局金服 </a>
                            </li>   
                        </ul>
                    </li>
                    <li class="toplink-item dropdown toplink-dropdown "  style="float:right;"><i class="icon icon-weixin"></i>
                        <ul class="dropbox dropbox-weixin">
                            <li>
                             <img src="~/Content/Images/qjreader.jpg"   width="100px"  alt="全局金服"><h6>全局金服</h6>
                            </li>
                        </ul>
                    </li>
                </ul>
                
            </div>
        </div>
    </div>
    <div id="header_body" class="header_body">

        <div id="logo">
        </div>
        <div id="menu">
            <nav>
                <ul>
                    <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Change/Index" class="change">首 页</a></li>
                    <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Claims/Index" class="claims">理 财</a></li>
                    <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["zcurl"]/Default/Index" class="default">众 筹</a></li>
                    @*<li><a href="/Fund/Index" class="fund">货币基金</a></li>*@
                     <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Fund/Index" class="fund">商 城</a></li>  
                     <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Article/NewsList?menuid=216" class="article">关于我们</a></li>  
                
                </ul>
            </nav>
        </div>
        <div id="login">
            <div class="userlgned">
                <p>会 员 中 心 </p>
                <u class="top-arrow"></u>
                <ul>
                    <li class="s1"><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Account/Index">个人资料</a></li>
                    <li class="s2"><a href="@System.Configuration.ConfigurationSettings.AppSettings["zqurl"]/Claims/MyInvest">我的理财</a></li>
                    <li class="s2"><a href="@System.Configuration.ConfigurationSettings.AppSettings["zcurl"]/UserProject/myproject">我的众筹</a></li>
                    <li class="s3"><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/UserDetails/authentication">消息中心</a></li>
                    <li class="s4">@Html.ActionLink("注销", "LogOut", "Login", new { area = "" }, null)</li>
                </ul>
            </div>
        </div>
    </div>
</header>
<div style="clear:both;"></div>

 <script src="~/Scripts/jQuery.textSlider.js"></script>
<script>
    $(document).ready(function () {
        $("#menu ul a").removeClass("menu_active");
        $(".@ViewBag.ControllerName").addClass("menu_active").siblings().removeClass("menu_active");
        $(".gg_1").textSlider({ line: 1, speed: 1200, timer: 3000 });//文字滚动
        //$('.header_body').stickUp();
    });
</script>
